import 'error_code.dart';

/// 响应数据实体
class ResponseData<T> implements Code {
  int? code;
  String? msg;
  T? data;

  ResponseData({required int? code, required String? msg, T? data})
      : this.code = code,
        this.msg = msg,
        this.data = data;

  @override
  String toString() => '{ "code": $code, "msg": $msg, "data": $data }';
}
